<template>
	<switch class='red' @change="SwitchB" :class="value?'checked':''" :checked="value?true:false" color="#e54d42"></switch>
</template>

<script>
	export default{
		props: {
			value: {
				type: Boolean
			}
		},
		data() {
			return {
			}
		},
		methods:{
			SwitchB(e) {
				this.$emit("input", e.detail.value)
			},
		}
	}
</script>

<style>
</style>
